.custom-page {
  //height: 100vh;
  //overflow-y: scroll;
  min-height: 100vh;

  .list-empty {
    min-height: 800px;
  }

  .tab-nav {
    top: 0px;
    left: 0;
    right: 0;
    color: rgba(51, 51, 51, 0.8);
    //width: 100%;
    height: 120px;
    z-index: 100;
    display: flex;
    position: sticky;
    overflow: hidden;
    align-items: stretch;
    background-color: #fff;
    margin-top: -50px;
    width: 16rem;
    &--height {
      height: 72px;
    }
    &__left {
      white-space: nowrap;
      //width: 120px;
      //font-size: 30px;
    }
    &__cty {
      $cty: &;
      &-scroll {
        width: 540px;
        height: 100%;
        white-space: nowrap;
      }
      &-list {
        height: 100%;
        display: flex;
        align-items: center;
      }
      &-item {
        height: 100%;
        width: 20%;
        display: inline-flex;
        position: relative;
        //font-weight: bold;
        align-items: center;
        justify-content: center;
      }
      &-img {
        height: 32px;
      }
      &-text {
        .cty-text-head {
          padding: 8px;
        }
        .cty-text-last {
          color: #b1b1b1;
          font-size: 24px;
          padding: 8px;
        }
        //line-height: 1;
      }
      &-active {
        .cty-text-head {
          color: $theme_color;
        }
        .cty-text-last {
          background: $theme_color;
          color: #fff;
          white-space: nowrap;
          //height: 30px;
          padding: 8px;
          border-radius: 22px;
          font-size: 24px;
        }
        font-size: 28px;
        #{$cty}-img {
          max-width: 40px;
          height: 40px;
        }
      }
    }
    &__right {
      width: 90px;
      font-size: 24px;
      box-shadow: -20px 0 12px -16px rgba(0, 0, 0, 0.26);
    }
    &__left,
    &__right {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .integral-box {
    //margin-top: 82px;
    width: 750px;
    height: 520px;
    position: relative;
    background-image: url(../../../assets/images/integral.png);
    background-size: 100% 100%;
  }

  .integral-info {
    top: 42%;
    left: 50%;
    width: 280px;
    height: 280px;
    position: absolute;
    transform: translate(-50%, -50%);
    //border-radius: 50%;
    //background-image: url(../../../assets/images/huan.png);
    //background-size: 100% 100%;
  }
  .home-score-bg {
    width: 250px;
    height: 250px;
    .taro-img {
      width: 100%;
      height: 100%;
    }
  }
  .checkin-btn {
    width: 250px;
    height: 70px;
    bottom: -10px;
    position: absolute;
    font-size: 28px;
    font-weight: bold;
  }

  .integral-title {
    top: 60px;
    position: absolute;
    font-size: 30px;
  }

  .integral-number {
    font-size: 48px;
  }

  .integral-prompt {
    width: 100%;
    color: #333;
    bottom: 90px;
    position: absolute;
    font-size: 24px;
  }

  .menu {
    &-list {
      top: 50%;
      right: 0;
      position: absolute;
      transform: translateY(-50%);
    }

    &-item {
      margin: 30px 0;
      padding: 10px 16px 10px 24px;
      font-size: 24px;
      border-radius: 50px 0 0 50px;
      background-color: rgba($theme_color, 0.7);
      color: $theme_text_color;
    }
  }

  .sign {
    &-wrap {
      height: 140px;
      border: 1px solid #f1f1f1;
      margin: 0 20px 20px 20px;
      display: flex;
      overflow: hidden;
      border-radius: 12px;
      position: relative;
      //top: 480px;
      top: -50px;
      background: #fff;
    }

    &-left {
      padding: 0 20px;
      background: $theme_color;
      color: $theme_text_color;
    }
    &-day {
      font-size: 36px;
      margin-top: 6px;
      &-num {
        font-size: 48px;
      }
    }

    &-right {
      flex: 1;
      padding: 0 20px;
    }

    &-list {
      height: 100%;
      display: flex;
      position: relative;
    }
    &-line {
      top: 50%;
      left: 50%;
      width: calc(100% - 64px);
      //height: 1PX;
      position: absolute;
      transform: translate(-50%, -50%);
      border-top: 1px dotted $theme_color;
    }

    &-item {
      flex: 1;
      display: flex;
      padding: 16px 0;
      font-size: 24px;
      align-items: center;
      flex-direction: column;
      justify-content: space-between;
    }
    &-circle {
      width: 24px;
      height: 24px;
      z-index: 1;
      display: flex;
      position: relative;
      background: $theme_color;
      align-items: center;
      border-radius: 50%;
      justify-content: center;
    }
    &-active {
      color: #fff;
      font-size: 20px;
      //background-color: rgb(54, 171, 96);
    }
  }
}

.index {
  &-nav {
  }

  &-custom {
    //position: relative;
    &__bg {
      top: 0;
      left: 0;
      right: 0;
      overflow: hidden;
      position: absolute;
      background-size: 100% auto;
      background-image: var(--page-bg-img);
      background-repeat: no-repeat;
      background-position: bottom;
    }
  }

  &-category {
    min-height: calc(100vh - 90px);
  }
}

.nav-bar {
  z-index: 90;
  display: flex;
  position: sticky;
  background-size: 100% auto;
  background-image: var(--page-bg-img);
  background-repeat: no-repeat;
  &--height {
    height: 72px;
  }
  &__area {
    flex: 1;
    padding: 20px;
    //left: 0;
    //right: 0;
    //padding: 0 10px;
    //position: absolute;
  }
  &__logo {
    width: 174px;
    height: 64px;
    margin-right: 10px;
  }
  &__input {
    flex: 1;
    color: #969696;
    //height: 100%;
    height: 64px;
    font-size: 28px;
    background: rgba(249, 249, 249, 0.9);
    padding-left: 24px;
    border-radius: 100px;
  }
}

.tab-nav {
  left: 0;
  color: rgba(51, 51, 51, 0.8);
  //width: 100%;
  height: 120px;
  z-index: 10;
  display: flex;
  position: sticky;
  overflow: hidden;
  align-items: stretch;
  background-size: 100% auto;
  background-color: #fff;
  background-image: var(--page-bg-img);
  background-repeat: no-repeat;
  text-align: center;
  &--height {
    height: 72px;
  }
  &__left {
    //width: 120px;
    //font-size: 30px;
  }
  &__cty {
    $cty: &;
    &-scroll {
      width: 540px;
      height: 100%;
      white-space: nowrap;
    }
    &-list {
      height: 100%;
      display: flex;
      align-items: center;
    }
    &-item {
      height: 100%;
      padding: 0 24px;
      display: inline-flex;
      position: relative;
      //font-weight: bold;
      align-items: center;
      justify-content: center;
    }
    &-img {
      height: 32px;
    }
    &-text {
      .cty-text-head {
        padding: 8px;
      }
      line-height: 1;
    }
    &-active {
      .cty-text-head {
        color: $theme_color;
      }
      .cty-text-last {
        background: $theme_color;
        color: #fff;
        white-space: nowrap;
        //height: 30px;
        //padding: 8px;
        border-radius: 22px;
        font-size: 24px;
      }
      font-size: 28px;
      #{$cty}-img {
        max-width: 40px;
        height: 40px;
      }
    }
  }
  &__right {
    width: 90px;
    font-size: 24px;
    box-shadow: -20px 0 12px -16px rgba(0, 0, 0, 0.26);
  }
  &__left,
  &__right {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

$goods-wrap: goods-wrap;
.#{$goods-wrap} {
  display: flex;
  flex-direction: column;
  &__head {
    padding-top: $page_margin;
  }
  &__title {
    position: relative;
    font-size: 36px;
    &:after {
      content: "";
      left: 0;
      right: 0;
      bottom: 0;
      height: 16px;
      z-index: -1;
      position: absolute;
      background: linear-gradient(270deg, #fea7aa, $theme_color);
      border-radius: 16px;
    }
  }
  &__more {
    color: #aaa;
    font-size: 24px;
  }
}

.#{$goods-wrap}__two {
  .#{$goods-wrap}__box {
    margin: 0 $page_margin;
    padding: 0 20px;
    display: flex;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.2);
    background: #fff;
    border-radius: 20px;
    flex-direction: column;
  }

  .#{$goods-wrap}__body {
    padding: 20px 0;
  }
}
.rule_modal{
  max-height: 60vh;
  padding: 0px 10px 10px 10px;
  overflow-y: auto;
  color: #555;
  .rule_content{
    display: block;
    font-size: 28.2px;
    line-height: 42px;
    color: #555;
  }
}
.at-modal__container{
  width: 85%;
}
.at-modal__overlay{
  background-color: rgba(0,0,0,.7);
}
.at-modal__header::after{
  border: none;
}
.at-modal__header{
  color: #333!important;
  margin-top: 20px!important;
  font-weight: 700;
}
.rule_btn{
  color: #145ce0!important;
  font-size: 32px!important;
}